<script setup lang="ts">
import { onMounted } from 'vue';
import TheWelcome from '../components/TheWelcome.vue'
import { useRoute, useRouter } from 'vue-router';
onMounted(() => {
  const route = useRoute()
  // alert(route.params.id)
  // alert(JSON.stringify(route.query))
})

const router = useRouter()
const back = () => {
  // router.back()
  router.go(-1)
}
</script>

<template>
  主页
  <button @click="back">返回</button>
  <!-- <main>
    <TheWelcome />
  </main> -->
</template>
